/*
StoreBox API (v1.1)
Thiago Bodruk
MarketBox Digital
marketboxdigital.com.br
*/
$('#cibergeek-gallery').css('font-family','Helvetica Neue, Helvetica, Arial, sans-serif');
$('document').ready(function (){
	$('#cibergeek-gallery').hide();
    $.getJSON('http://cibergeek.com.br/json.php?limit=3&search=mario&callback=?', function (data){
        $('#cibergeek-gallery').html('');
		$('#cibergeek-gallery').css('padding','10px').css('width','360px');
		$('#cibergeek-gallery').append('<h3 style="margin-top:0px;margin-bottom:0px;">Canecas Nerds</h3>');
        $.each(data, function (i, item){
			$('#cibergeek-gallery').append(
				'<div class="cibergeek-product" style="float:left;width:100px;margin:10px;">'
				+ '<a style="text-decoration:none;" title="'+item.name+'" href="' + item.url + '"><img src="' + item.img + '" alt="'+item.name+'" style="width:100px;height:100px;border:thin solid #ddd;padding:5px;-webkit-border-radius: 5px;border-radius: 5px;"/></a>'
				+ '<a style="text-decoration:none;color:#1982D1;font-weight:bold;font-size:14px;" title="'+item.name+'" href="' + item.url + '">' + item.name + '</a><br />'
				+ '<span style="font-family: Tahoma, Geneva, sans-serif;color: #FF6600;float:left;font-weight:bold;margin-top:5px;">R$ ' + item.price + '</span>'
				+ '</div>'
			);
		});
		$('#cibergeek-gallery').append('<div style="clear:both;text-align:right;font-size:10px;"><a href="http://loja.cibergeek.com.br"style="text-decoration:none;color:#ccc;font-weight:bold;" title="Canecas Nerds">CiberGeek</a></div>');
	});
	$('#cibergeek-gallery').fadeIn(1000);
});